package com.navigation.segmented;

import java.util.ArrayList;

public class EnergyEntry {

	public String country;
	public long total;
	public long hydro;
	public long nuclear;

	public static EnergyEntry getFromLine(String line) {
		
		String[] arr = line.split(",");
		
		EnergyEntry result = new EnergyEntry();
		
		result.country = arr[0];
		result.total = Long.parseLong(arr[1]);
		result.hydro = Long.parseLong(arr[2]);
		result.nuclear = Long.parseLong(arr[3]);
		
		return result;
	}

}
